//
//  common.hpp
//  VideoParse
//
//  Created by xiaerfei on 2020/5/1.
//  Copyright © 2020 erfeixia. All rights reserved.
//

#ifndef common_hpp
#define common_hpp

#define FFMAX(a,b) ((a) > (b) ? (a) : (b))
#define FFMIN(a,b) ((a) > (b) ? (b) : (a))
#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)


/**
 * Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they
 * are not representable as absolute values of their type. This is the same
 * as with *abs()
 * @see FFNABS()
 */
#define FFABS(a) ((a) >= 0 ? (a) : (-(a)))
#define FFSIGN(a) ((a) > 0 ? 1 : -1)


namespace common {




}

#endif /* common_hpp */
